﻿#region Copyright(C) 2013-2013 NCS Pte. Ltd. All rights reserved.
// ==================================================================================================
// Copyright(C) 2010 NCS Pte. Ltd. All rights reserved.
//
// SYSTEM NAME      : iConnect .Net Application Framework
// COMPONENT ID     : NCS.IConnect.Core.EntLib
// COMPONENT DESC   : Microsoft Enterprise Library Adapter.
//
// CREATED DATE/BY  : 18 Dec 2013 / Jiang Jin Nan
//
// REVISION HISTORY :
// DATE/BY            SR#/CS/PM#/OTHERS       DESCRIPTION OF CHANGE
// ==================================================================================================
#endregion

using Microsoft.Practices.Unity.Configuration;

namespace NCS.IConnect.Core.IoC.Configuration
{
    /// <summary>
    /// Custom <see cref="SectionExtension"/> with <see cref="AutoInterceptionElement"/> and <see cref="AutoInterception"/>.
    /// </summary>
    public class AutoInterceptionConfigurationExtension : SectionExtension
    {
        /// <summary>
        /// Adds the extensions.
        /// </summary>
        /// <param name="context">The context.</param>
        public override void AddExtensions(SectionExtensionContext context)
        {
            context.AddElement<AutoInterceptionElement>("autoInterception");
            context.AddAlias<AutoInterception>("AutoInterception");
        }
    }
}
